package com.nuoniu.sibanyun.entity.crm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 邀约表单
 * </p>
 *
 * @author 小啊刚
 * @since 2021-09-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_form")
@ApiModel(value="CrmForm对象", description="邀约表单")
public class CrmForm extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "活动id")
    @TableField("activity_id")
    private Integer activityId;

    @ApiModelProperty(value = "活动名称")
    @TableField("activity_name")
    private String activityName;

    @ApiModelProperty(value = "表单名称")
    @TableField("form_name")
    private String formName;

    @ApiModelProperty(value = "商机标题")
    @TableField("business_title")
    private String businessTitle;

    @ApiModelProperty(value = "标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "背景图")
    @TableField("bg_img")
    private String bgImg;

    @ApiModelProperty(value = "标题颜色")
    @TableField("bg_color")
    private String bgColor;

    @ApiModelProperty(value = "logo")
    @TableField("logo")
    private String logo;

    @ApiModelProperty(value = "开始时间")
    @TableField("begin_date")
    private String beginDate;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_date")
    private String endDate;

    @ApiModelProperty(value = "状态0未邀约 1:已邀约")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "是否发送短信验证码 0否1是")
    @TableField("is_sms")
    private Integer isSms;

    @ApiModelProperty(value = "描述")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "业务员")
    @TableField("salesman")
    private String salesman;

    @ApiModelProperty(value = "字段列表")
    @TableField(exist = false)
    List<CrmFormField> fields;

}
